/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package GameObject;

import FrameWork.Models.GLModel;
import Manager.ResourceManager;
import javax.media.opengl.GL2;
import utils.Vector3;

/**
 *
 * @author trong_000
 */
public class ChessBoard {
    private GLModel board; //Model 3D cho ban co
    private ChessPiece[] chessPieces; //32 quan co
    private int[][] mapPieces; // [11][12] mang 2 chieu the hien vi tri va trang thai ban co
    
    private Vector3 position; 
    public static final float CELL_UNIT = 0.4f; //1 o vuong = 0.4f units trong openGL
    
    /*
     * Constructor
     */
    public ChessBoard(){
        board = ResourceManager.getInstance().ChessBoard;
        position = new Vector3(0, -0.1f, 0);
        //Khoi tao cac quan co
        
    }
    
    
    //picking
    
    
    
    public void update(float dt){
        
    }
    
    public void draw(GL2 gl){
        board.opengldraw(gl, position.x, position.y, position.z, 1.1f);
    }
    
    public int[][] getMapPieces(){
        return mapPieces;
    }
    
    public ChessPiece[] getChessPieces(){
        return chessPieces;
    }
    
    public int getPieceSelected(){
        return -1;
    }
}
